﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="OilUltimateAnalysis.aspx.cs" Inherits="Admin_OilUltimateAnalysis" Title="Admin ~ OilUltimateAnalysis" %>
<%@ Register src="../Usercontrols/Header.ascx" tagname="Header" tagprefix="uc1" %>
<%@ Register src="../Usercontrols/Menu1.ascx" tagname="Menu1" tagprefix="uc2" %>
<%@ Register src="../Usercontrols/Footer.ascx" tagname="Footer" tagprefix="uc3" %>
<%@ Register src="../Usercontrols/Menu2.ascx" tagname="Menu2" tagprefix="uc4" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   
   <table cellpadding="0" cellspacing="0" width="100%">
    <tr>         
        <td align="center" >
           <table cellpadding="0" cellspacing="0" width="900px" >
             
              <tr>
                 <td align="center"  valign="top"> 
                     <uc1:Header ID="Header1" runat="server" />
                 </td>
              </tr>
               
              <tr>
                    <td align="right">
                        <uc2:Menu1 ID="Menu11" runat="server" />
                    </td>
               </tr>
                    
              <tr>
                   <td align="center" valign="top" >        
                     
                     <table cellpadding="5" cellspacing="0" width="100%" class="mainTableBkg">
                        
                        <tr valign="top" align="left">
                            <td>
                                    <table >
                                                                                               
                                               <tr valign="top" align="left" >                                    
                                                                <td> 
                                                                    <table>
                                                                        <tr>
                                                                             <td class="adminHeading " colspan="2">OIL ULTIMATE ANALYSIS</td>
                                             <td><asp:Label ID="lblMessage" runat="server" CssClass="messageLabel"></asp:Label></td> 
                                             <td align="right"> <asp:HyperLink ID="HyperLink1" runat="server"  NavigateUrl="~/Admin/LiquidComposition.aspx">Go back to Liquid Composition</asp:HyperLink></td>
                                             <td align="right" ><asp:Label ID="lblExpdetails" runat="server" CssClass="informationLabe"></asp:Label> </td>                                        
                                         </tr>     
                                                                    </table>
                                                                </td>
                                                 </tr>   
                                                            
                                                <tr id="trTextboxOilUltimate" runat="server" >
                                    <td>
                                        <table >
                                            <tr class="altanateAshBkg" id="trUserCode" runat="server" visible="false" >
                                            <td class='label' style="width: 120px">OilUltiamteAnaId</td>
                                             <td><asp:TextBox ID="txtOilUltimateAnalysisId" runat="server" cssclass='textBox' Width='150px' 
                                            MaxLength="50"></asp:TextBox></td>
                                        </tr> 
                                                               
                                           <tr>
                                    <td colspan="2">
                                        <table style="width: 868px" >
                                           
                                            <tr class="altanateAshBkg">
                                            <td class='label'>C (wt%)</td>
                                            <td style="width: 55px">
                                                <asp:TextBox ID="txtC" runat="server" 
                                                    cssclass='textBox' Width='45px' MaxLength="100"></asp:TextBox></td>
                                            <td class='label'>O (wt%)</td>
                                            <td style="width: 112px">
                                                <asp:TextBox ID="txtO" runat="server" 
                                                    cssclass='textBox' Width='45px' MaxLength="100"></asp:TextBox></td>
                                            <td class='label'>Ash (wt%)</td>
                                            <td><asp:TextBox ID="txtAsh" runat="server" cssclass='textBox' Width='45px' 
                                                    MaxLength="10"></asp:TextBox></td>
                                            <td class='label'>C:H </td>
                                            <td><asp:TextBox ID="txtCH" runat="server" cssclass='textBox' Width='45px' 
                                                    MaxLength="100"></asp:TextBox></td>
                                            </tr>
                                            
                                            <tr class="ashBkg">
                                            <td class='label'>H (wt%)</td>
                                            <td style="width: 55px">
                                                <asp:TextBox ID="txtH" runat="server" 
                                                    cssclass='textBox' Width='45px' MaxLength="10"></asp:TextBox></td>
                                            <td class='label'>Cl (wt%)</td>
                                            <td style="width: 112px">
                                                <asp:TextBox ID="txtCl" runat="server" 
                                                    cssclass='textBox' Width='45px' MaxLength="10"></asp:TextBox></td>
                                            <td class='label'>Water (wt%)</td>
                                            <td><asp:TextBox ID="txtWater" runat="server" cssclass='textBox' Width='45px' 
                                                    MaxLength="10"></asp:TextBox></sub></td>
                                            <td class='label'>C:O </td>
                                            <td><asp:TextBox ID="txtCO" runat="server" cssclass='textBox' Width='45px' 
                                                    MaxLength="100"></asp:TextBox></td>
                                            </tr >
                                            
                                            <tr class="altanateAshBkg">
                                            <td class='label'>N (wt%)</td>
                                            <td style="width: 55px">
                                                <asp:TextBox ID="txtN" runat="server" 
                                                    cssclass='textBox' Width='45px' MaxLength="10"></asp:TextBox></td>
                                            <td class='label'>S (wt%)</td>
                                            <td style="width: 112px">
                                                <asp:TextBox ID="txtS" runat="server" 
                                                    cssclass='textBox' Width='45px' MaxLength="100"></asp:TextBox></td>
                                            </tr>
                                            <tr>
                                            <td colspan="4">
                                             <table >
                                               <tr>
                                                <td class='label'>Water Method </td>
                                                <td style="width: 126px">
                                                    <asp:TextBox ID="txtWaterMethod"  runat="server" 
                                                        cssclass='textBox' Width='150px' MaxLength="10" Height="20px"></asp:TextBox></td>
                                               </tr> 
                                             </table>
                                            </td>
                                           
                                            
                                        </table>
                                    </td>
                                </tr>    
                                
                                           <tr>
                                    <td class="ashBkg ">
                                    
                                        <asp:ImageButton ID="ImageButton1" runat="server" 
                                            ImageUrl="~/Images/btnSave.jpg" onclick="ImageButton1_Click" />
                                    
                                    </td>
                                    
                                    <td>
                                    <asp:Button ID="btnPreviou" Text="Previous Record" runat="server" CssClass="button" 
                                            onclick="btnPreviou_Click" />
                                    </td>
                                </tr> 
                                        
                                        </table>
                                    </td>
                                </tr>
                                      
                                                <tr id="trdgOilUltimateAna" runat="server">
                                    <td align="left" style="padding-left:5px;" colspan='2'>
                                        <asp:GridView  Width="880px" AllowSorting="true" AutoGenerateEditButton="true"  
                                            AllowPaging="true" AutoGenerateColumns="false" ID="dgOilUltimateAnal" 
                                            runat="server" onrowediting="dgOilUltimateAnal_RowEditing" 
                                            onpageindexchanging="dgOilUltimateAnal_PageIndexChanging">
                                            <Columns>      
                                           <%-- <asp:CommandField ButtonType="Image" ShowDeleteButton="true" DeleteImageUrl="~/Images/Delete-16x16.png"  DeleteText="Delete" Visible="true" />                                      --%>
                                                <asp:BoundField DataField ="id" HeaderText ="ID"   />
                                                <asp:BoundField  DataField="C" HeaderText="C"/>
                                                <asp:BoundField  DataField="H" HeaderText="H" />
                                                <asp:BoundField  DataField="N" HeaderText="N" />
                                                <asp:BoundField  DataField="O" HeaderText="O" />
                                                <asp:BoundField  DataField="Cl" HeaderText="Cl"/>
                                                <asp:BoundField  DataField="S" HeaderText="S" />
                                                <asp:BoundField  DataField="Ash" HeaderText="Ash" />
                                                <asp:BoundField  DataField="Water" HeaderText="Water" />
                                                <asp:BoundField  DataField="Watermethod" HeaderText="Water Method" />
                                                <asp:BoundField  DataField="H_C" HeaderText="H:C" />
                                                <asp:BoundField  DataField="O_C" HeaderText="O:C" />                                                                                            
                                            </Columns>
                                            <HeaderStyle CssClass="gridHeading" />
                                            <AlternatingRowStyle CssClass="gridAltRowStyleStyle" />                                                                                        
                                            <RowStyle CssClass="gridRowStyle" />                                                                                       
                                            <PagerStyle />
                                            <EditRowStyle CssClass="gridEditRow" />                                     
                                        </asp:GridView>
                                    </td>
                             </tr>
                           
                                    </table>
                            </td>
                        </tr>               
                         
                     </table>
                     
                   </td>        
                </tr>  
                                                   
              <tr>
                        <td>    
                            <uc3:Footer ID="Footer1" runat="server" />
                        </td>
                   </tr> 
                    
             </table>
           </td> 
      </tr>
 </table> 

</asp:Content>

